<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use common\components\widgets\Datetimepicker;
Datetimepicker::widget(['timepicker' => 'true','format'=>'Y-m-d H:i']);
?>
    <div class="zx-min-height">
        <div class="yx-praise-list-box">
            <?php $form = ActiveForm::begin(['enableClientValidation' => false, 'enableAjaxValidation' => true, 'options' => ['class' => 'form-validate']]); ?>
            <table width="100%" class="table-form">
                <tr>
                    <th class="zx-goods-table"><?= $model->attributeLabels()['status']; ?></th>
                    <td><?= $form->field($model, 'status', ['template' => '{input}{error}{hint}'])->dropDownList(['1'=>'通过','2'=>'退回'], ['style' => 'width:220px','prompt'=>'请选择...']) ?></td>
                </tr>
                <tr>
                    <th class="zx-goods-table"><?= $model->attributeLabels()['remark']; ?></th>
                    <td><?= $form->field($model, 'remark', ['template' => '{input}{error}{hint}'])->textarea(['style' => 'width:220px;height:100px', 'class' => 'input-text']) ?>
                        <?php if(\Yii::$app->user->identity->role != 'mec_principal') { ?>
                            <?= $form->field($model, 'is_visual', ['template' => '{input}{error}{hint}'])->checkbox() ?>
                        <?php }?>
                    </td>
                </tr>
            </table>
            <div class="zx-button-center" style="display: none">
                <?= Html::submitButton('提交', ['class' => "btn yx-next-step yx-radius5 button_step", 'id' => 'dosubmit']) ?>
            </div>
            <?php ActiveForm::end(); ?>
        </div>
    </div>